package com.ninjia.core.constants;

import com.ninjia.common.pojo.ErrorDict;

public enum CoreErrorDict {
    PWD_Incorrect(10003, "密码不正确"),
    USER_EXIST(10006, "用户已存在"),
    DATA_NOT_EXIST(10013, "数据记录不存在");

    private ErrorDict code;

    CoreErrorDict(Integer Code, String emsg) {
        code = new ErrorDict(Code, emsg);
    }

    public ErrorDict res() {
        return code;
    }
}
